
import models.Noticia;
import play.Play;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Luis-UACH
 */
@OnApplicationStart
public class TareasIniciales extends Job{

    @Override
    public void doJob() throws Exception {
        if(Noticia.findAll().size()<1) {
           Fixtures.loadModels("initial-data.yml");
        }
    }
    
       
    
}
